package com.dooioo.pns.entity.model;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * PackageName:com.dooioo.pns.entity.model
 * Author: Jerry.hu
 * Create: Jerry.hu (2015-05-07 上午10:37)
 * Description: 客户端APP 信息
 */
@Alias("appInfo")
public class AppInfo implements Serializable{
	private static final long serialVersionUID = -4350444890972321727L;
	/**
	 * app 主键id
	 */
	private int id;
	/**
	 * app 应用名称
	 */
	private String appName;
	/**
	 * app appId
	 */
	private String appId;
	/**
	 * app key
	 */
	private String appKey;
	/**
	 * app 状态 1 正常，9删除
	 */
	private int status;
	/**
	 * app 注册时间
	 */
	private Date createTime;
	/**
	 * app 更新时间
	 */
	private Date updateTime;

	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getAppKey() {
		return appKey;
	}

	public void setAppKey(String appKey) {
		this.appKey = appKey;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public AppInfo() {
	}

	public AppInfo(String appId, String appKey, String appName) {
		this.appId = appId;
		this.appKey = appKey;
		this.appName = appName;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("AppInfo{");
		sb.append("appId='").append(appId).append('\'');
		sb.append(", id=").append(id);
		sb.append(", appName='").append(appName).append('\'');
		sb.append(", appKey='").append(appKey).append('\'');
		sb.append(", status=").append(status);
		sb.append(", createTime=").append(createTime);
		sb.append(", updateTime=").append(updateTime);
		sb.append('}');
		return sb.toString();
	}
}
